$OpenBSD: patch-src_utils_eloop_c,v 1.7 2016/10/07 14:44:03 dcoppa Exp $

Don't try to access list members to free them unless already
initialised

--- src/utils/eloop.c.orig	Sun Oct  2 20:51:11 2016
+++ src/utils/eloop.c	Mon Oct  3 11:06:38 2016
@@ -1249,6 +1249,9 @@ void eloop_destroy(void)
 	struct eloop_timeout *timeout, *prev;
 	struct os_reltime now;
 
+	if (eloop.timeout.prev == NULL)
+		return;
+
 	os_get_reltime(&now);
 	dl_list_for_each_safe(timeout, prev, &eloop.timeout,
 			      struct eloop_timeout, list) {
